EMT Practice Test

1. Question Content...


Question List

Question1: What is the output of the following command?
echo "Hello World" | tr -d aieou

Question2: Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Question3: In Bash, inserting 1>&2 after a command redirects

Question4: Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Question5: Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

Question6: Which of the following statements is correct regarding the command foo 1> bar?

Question7: Which of the following is correct when talking about mount points?

Question8: What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Question9: Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Question10: Which of the following command sets the Bash variable named TEST with the content FOO?

Question11: Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

Question12: SIMULATION
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

Question13: What is the difference between the i and a commands of the vi editor?

Question14: When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
while /tmp/file contains data, why is /tmp/file empty afterwards?

Question15: In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Question16: Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Question17: Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

Question18: What is the default nice level when a process is started using the nice command?

Question19: What is the effect of the egrep command when the -v option is used?

Question20: SIMULATION
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Question21: What is the default action of the split command on an input file?

Question22: After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

Question23: SIMULATION
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon

Question24: Which of the following commands lists the dependencies of a given dpkg package?

Question25: What does the ? symbol within regular expressions represent?

Question26: Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Question27: Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Question28: How many fields are in a syntactically correct line of /etc/fstab?

Question29: Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

Question30: What does the command mount -a do?

Question31: In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Question32: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Question33: Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Question34: Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

Question35: In compliance with the FHS, in which of the directories are man pages found?

Question36: Which of the following is the device file name for the second partition on the only SCSI drive?

Question37: SIMULATION
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Question38: In order to display all currently mounted filesystems, which of the following commands could be used?
(Choose TWO correct answers.)

Question39: Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?

Question40: What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Question41: Which variable defines the directories in which a Bash shell searches for executable commands?

Question42: Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Question43: What happens after issuing the command vi without any additional parameters?

Question44: What is the purpose of the Bash built-in export command?

Question45: Which of the following commands updates the linker cache of shared libraries?

Question46: When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)

Question47: What command will generate a list of user names from /etc/passwd along with their login shell?

Question48: Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

Question49: When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Question50: Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Question51: Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Question52: SIMULATION
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

Question53: Which of the following commands is used to update the list of available packages when using dpkg based package management?

Question54: After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem.
Which of the following describes the resulting situation?

Question55: Which of the following commands can be used to download the RPM package kernel without installing it?

Question56: Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Question57: Which of the following commands lists all currently installed packages when using RPM package management?

Question58: Which of the following commands will change the quota for a specific user?

Question59: When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?

Question60: SIMULATION
Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

Question61: Which of the following file permissions belong to a symbolic link?

Question62: SIMULATION
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

Question63: Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

Question64: What does the -purge action with the dpkg command do?

Question65: After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Question66: Which of the following commands moves and resumes in the background the last stopped shell job?

Question67: Which file should be edited to select the network locations from which Debian installation package files are loaded?

Question68: A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Question69: Which of the following commands can be used to determine how long the system has been running?
(Choose TWO correct answers.)

Question70: SIMULATION
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Question71: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?